package com.tanhua.dubbo.api;

import com.tanhua.model.mongo.Movement;
import com.tanhua.model.vo.PageResult;

import java.util.List;

/**
 * @author wjs
 * @version 1.0
 * @date 2021/12/26 0026 下午 6:39
 */
public interface MovementApi {
    Movement publish(Movement movement);

    PageResult pageByUserId(Long userId, Integer page, Integer pagesize);

    List<Movement> findFriendMovements(Integer page, Integer pagesize, Long userId);

    List<Movement> randomMovents(Integer counts, Long userId);

    List<Movement> findMovementsByPids(List<Long> pids);

    Movement findById(String movementId);

    PageResult findPageByUserIdAndState(Integer page, Integer pagesize, Long uid, Integer state);

    void update(String movementId, Integer state);
}
